if len(protocolInfoList) >= 5:    #对？
    # print("[capture]: len >= 5")
    # print (protocolInfoList)
    # input()
    # if '<HTTPRequest' in protocolInfoList[4]:
    if '<Raw' in protocolInfoList[3]:
        protocolInfo_str = re.split('\'| |\n', protocolInfoList[3])
        HttpReq_list = ['GET', 'POST']
        # print('[capture http]: ', protocolInfo_str[3])
        if len(protocolInfo_str) > 3:
            if protocolInfo_str[3] in HttpReq_list:
                
                # print("[capture]: httpreq")
                pkt.flag['httpreq'] = 1
                HttpReq = HttpReqPkt()
                HTTPReqInfo = GetHttpReqInfo(protocolInfoList)
                HttpReq.time = HTTPReqInfo[0]
                HttpReq.method_ = HTTPReqInfo[1]
                HttpReq.path = HTTPReqInfo[2] 
                HttpReq.httpVersion = HTTPReqInfo[3] 
                HttpReq.accept = HTTPReqInfo[4] 
                HttpReq.cacheControl = HTTPReqInfo[5] 
                HttpReq.connection = HTTPReqInfo[6]  
                HttpReq.contentLength = HTTPReqInfo[7]  
                HttpReq.contentType = HTTPReqInfo[8] 
                HttpReq.host= HTTPReqInfo[9] 
                HttpReq.upgrade = HTTPReqInfo[10] 
                HttpReq.userAgent = HTTPReqInfo[11] 
                HttpReq.unknownHeaders = HTTPReqInfo[12]
                HttpReq.PrintMyInfo()
                pkt.httpreq = HttpReq
            else:
            # elif '<HTTPResponse' in protocolInfoList[4]:
                # print("[capture]: httpres")
                pkt.flag['httpres'] = 1
                HttpRes = HttpResPkt()
                HTTPResInfo = GetHttpResInfo(protocolInfoList)
                HttpRes.time = HTTPResInfo[0] 
                HttpRes.httpVersion = HTTPResInfo[1] 
                HttpRes.statusCode = HTTPResInfo[2] 
                HttpRes.reasonPhrase = HTTPResInfo[3] 
                HttpRes.connection = HTTPResInfo[4]  
                HttpRes.contentLength = HTTPResInfo[5]  
                HttpRes.contentType = HTTPResInfo[6] 
                HttpRes.PrintMyInfo()
                pkt.httpres = HttpRes